package bosque.unc.ayuda;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.UIManager;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;

import java.awt.Font;

import javax.swing.JTextArea;

import bosque.unc.enumerations.Ayuda;

import java.awt.SystemColor;

public class RampaAyuda extends JFrame {

	private JPanel contentPane;
	private JTextArea textAreaRampaManopla;
	private JTextArea textAreaRampaCalado;
	private JTextArea textAreaNota;
	
	
	private JScrollPane scroll;
	private JScrollPane scroll2;
	private JScrollPane scroll3;
	
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				
				try
				{
					System.out.println("Look and Fell: " + UIManager.getSystemLookAndFeelClassName());
					UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
				}
				catch (Exception ex)
				{
					System.out.println("Failed loading L&F: ");
					System.out.println(ex);
				}
				
				try {
					RampaAyuda frame = new RampaAyuda();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public RampaAyuda() {
		//setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 683, 502);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblRampaManopla = new JLabel("Rampa Manopla");
		lblRampaManopla.setFont(new Font("Arial", Font.BOLD, 13));
		lblRampaManopla.setBounds(10, 22, 145, 14);
		contentPane.add(lblRampaManopla);
		
		textAreaRampaManopla = new JTextArea();
		textAreaRampaManopla.setEditable(false);
		textAreaRampaManopla.setBackground(SystemColor.control);
		textAreaRampaManopla.setText(Ayuda.AYUDA_PANTALLA_RAMPA_MANOPLA.getMsg());
		scroll = new JScrollPane(textAreaRampaManopla);
		scroll.setBounds(10, 47, 620, 93);
		contentPane.add(scroll);
		
		JLabel lblRampaCalado = new JLabel("Rampa Calado");
		lblRampaCalado.setFont(new Font("Arial", Font.BOLD, 13));
		lblRampaCalado.setBounds(10, 161, 145, 14);
		contentPane.add(lblRampaCalado);
		
		textAreaRampaCalado = new JTextArea();
		textAreaRampaCalado.setEditable(false);
		textAreaRampaCalado.setBackground(SystemColor.menu);
		textAreaRampaCalado.setText(Ayuda.AYUDA_PANTALLA_RAMPA_CALADO.getMsg());
		scroll2 = new JScrollPane(textAreaRampaCalado);
		scroll2.setBounds(10, 186, 620, 123);
		contentPane.add(scroll2);
		
		JLabel lblNota = new JLabel("Nota");
		lblNota.setFont(new Font("Arial", Font.BOLD, 13));
		lblNota.setBounds(10, 328, 145, 14);
		contentPane.add(lblNota);
		
		textAreaNota = new JTextArea();
		textAreaNota.setEditable(false);
		textAreaNota.setBackground(SystemColor.control);
		textAreaNota.setText(Ayuda.AYUDA_PANTALLA_RAMPA_NOTA.getMsg());
		scroll3 = new JScrollPane(textAreaNota);
		scroll3.setBounds(10, 353, 620, 100);
		contentPane.add(scroll3);
	}
}
